VimUnDo 8jZ@ 8Z8b_      ,predefined common words in common languages.            _       _   _   _    hH
    _                                                                                                                                                                                                                                                                                                                                                                                          hH7                        5_                                                                                                                                                                                                                                                                                                                                                                                         hHQ                     $choices = ["Cat", "Dog", "Elephant"]5_                                                                                                                                                                                                                                                                                                                                                                                         hHS                     5_                                                                                                                                                                                                                                                                                                                                                                                         hH_                    Key Details5_                                                                                                                                                                                                                                                                                                                                                                                         hHa                    <Levenshtein algorithm: classic dynamic programming solution.5_                                                                                                                                                                                                                                                                                                                                                                                         hHd                        3Similarity ratio: normalized value between 0 and 1.      	         3Similarity ratio: normalized value between 0 and 1.5_                    	                                                                                                                                                                                                                                                                                                                                                                     hHg           	             =Threshold: 0.8 (80%) by default — you can adjust as needed.      
         =Threshold: 0.8 (80%) by default — you can adjust as needed.5_      	              	                                                                                                                                                                                                                                                                                                                                                                     hHk              
      @ - Threshold: 0.8 (80%) by default — you can adjust as needed.          
   
       5_      
           	      3                                                                                                                                                                                                                                                                                                                                                                 hHx        
              3print(get_choice("bird", choices))       # → None5_   	              
                                                                                                                                                                                                                                                                                                                                                                        hH                      5_   
                                                                                                                                                                                                                                                                                                                                                                                      hH           	          5_      
                                                                                                                                                                                                                                                                                                                                                                                   hH           	         0Returns True, False, or None based on the match.5_                 
                                                                                                                                                                                                                                                                                                                                                                        hH                    5Checks for presence of positive or negative keywords.5_   
                                                                                                                                                                                                                                                                                                                                                                                      hH                    3Strips and lowercases the response to normalize it.5_                                                                                                                                                                                                                                                                                                                                                                                         hH                    6 - Strips and lowercases the response to normalize it.                    5_                                                                                                                                                                                                                                                                                                                                                                                         hH                    8 - Checks for presence of positive or negative keywords.                    5_                                                                                                                                                                                                                                                                                                                                                                                        hH                    # Determine boolean value5_                                                                                                                                                                                                                                                                                                                                                                                        hH                    # Determine boolean value5_                                                                                                                                                                                                                                                                                                                                                                                        hH                    ## Key Details5_                    
                                                                                                                                                                                                                                                                                                                                                                    hH                    ## Key Details5_                                                                                                                                                                                                                                                                                                                                                                                        hH                    
## Example5_                                                                                                                                                                                                                                                                                                                                                                                        hH        
            # Select choice of a list5_                                                                                                                                                                                                                                                                                                                                                                                        hH                    ##5_                                                                                                                                                                                                                                                                                                                                                                                        hH        
            ## Select choice of a list5_                    
                                                                                                                                                                                                                                                                                                                                                                     hH                     5_                       0                                                                                                                                                                                                                                                                                                                                                                 hH0        
            0similarity ratio if one of the values is chosen.5_                                                                                                                                                                                                                                                                                                                                                                                        hHo                                                                                      5_                    !                                                                                                                                                                                                                                                                                                                                                                     hH            "   '      This function:5_                    !                                                                                                                                                                                                                                                                                                                                                                    hH            "   '      ## This function:5_                     !                                                                                                                                                                                                                                                                                                                                                                    hH            "   '      ### This function:5_      !               !                                                                                                                                                                                                                                                                                                                                                                    hH            "   '      ### Key Details function:5_       "           !   #                                                                                                                                                                                                                                                                                                                                                                     hH        "   $   '      0Returns all close-enough matches from your list.5_   !   #           "   #                                                                                                                                                                                                                                                                                                                                                                    hH        !   #   '          2- Returns all close-enough matches from your list.   "   $   '      3 - Returns all close-enough matches from your list.5_   "   $           #   $                                                                                                                                                                                                                                                                                                                                                                     hH        "   $   &          8Keeps the original data types (not stringified results).   #   %   &      8Keeps the original data types (not stringified results).5_   #   %           $   %                                                                                                                                                                                                                                                                                                                                                                     hH        #                  3Uses the same logic and thresholding as get_choice.   $              3Uses the same logic and thresholding as get_choice.5_   $   &           %      @                                                                                                                                                                                                                                                                                                                                                                 hH              $      @ - Threshold: 0.8 (80%) by default — you can adjust as needed.5_   %   '           &   	                                                                                                                                                                                                                                                                                                                                                                     hH        	      %       	   
   %    5_   &   (           '   
                                                                                                                                                                                                                                                                                                                                                                    hH           
   &          :- Keeps the original data types (not stringified results).   	      &      ; - Keeps the original data types (not stringified results).5_   '   )           (                                                                                                                                                                                                                                                                                                                                                                        hH              %                    %       5_   (   *           )                                                                                                                                                                                                                                                                                                                                                             v        hH              $      $choices = ["Cat", "Dog", "Elephant"]5_   )   +           *                                                                                                                                                                                                                                                                                                                                                             v        hH              %       5_   *   ,           +                                                                                                                                                                                                                                                                                                                                                             v        hH              %       5_   +   -           ,   &   6                                                                                                                                                                                                                                                                                                                                                      v        hH       %              6 - Uses the same logic and thresholding as get_choice.5_   ,   .           -   /                                                                                                                                                                                                                                                                                                                                                                     hH        .               5_   -   /           .   ^                                                                                                                                                                                                                                                                                                                                                                    hHQ        ]              # → []5_   .   0           /                                                                                                                                                                                                                                                                                                                                                                        hH]               _                _    5_   /   1           0      
                                                                                                                                                                                                                                                                                                                                                                 hH^              `      
# Features5_   0   2           1                                                                                                                                                                                                                                                                                                                                                                       hH              b      What does the LLM say? 5_   1   3           2                                                                                                                                                                                                                                                                                                                                                                        hH              o      '"Gering-ding-ding-ding-dingeringeding!"5_   2   4           3                                                                                                                                                                                                                                                                                                                                                                        hH              o      "A-hee-ahee ha-hee!"             o       5_   3   5           4                                                                                                                                                                                                                                                                                                                                                                        hH              n      "A-hee-ahee ha-hee!"5_   4   6           5                                                                                                                                                                                                                                                                                                                                                                        hH              n      "Fraka-kaka-kaka-kaka-kow!"       
      n       5_   5   7           6   
                                                                                                                                                                                                                                                                                                                                                                     hH              m      "Fraka-kaka-kaka-kaka-kow!"5_   6   8           7                                                                                                                                                                                                                                                                                                                                                                        hH        
      m      %"Joff-tchoff-tchoffo-tchoffo-tchoff!"5_   7   9           8                                                                                                                                                                                                                                                                                                                                                                        hH        
      m      ' -"Joff-tchoff-tchoffo-tchoffo-tchoff!"          
   m       5_   8   :           9   
                                                                                                                                                                                                                                                                                                                                                                     hH           
   l      "Hatee-hatee-hatee-ho!"       	      l       5_   9   ;           :   	                                                                                                                                                                                                                                                                                                                                                                     hH           
   k      "Hatee-hatee-hatee-ho!"5_   :   <           ;                                                                                                                                                                                                                                                                                                                                                                        hH              k      "Wa-pa-pa-pa-pa-pa-pow!"          	   k       5_   ;   =           <                                                                                                                                                                                                                                                                                                                                                                        hH              j      "Wa-pa-pa-pa-pa-pa-pow!"5_   <   >           =                                                                                                                                                                                                                                                                                                                                                                        hH              j      %"Ring-ding-ding-ding-dingeringeding!"             j       5_   =   ?           >                                                                                                                                                                                                                                                                                                                                                                        hH              i      %"Ring-ding-ding-ding-dingeringeding!"5_   >   @           ?                                                                                                                                                                                                                                                                                                                                                                       hH           	   i      ' -"Joff-tchoff-tchoffo-tchoffo-tchoff!"5_   ?   A           @                                                                                                                                                                                                                                                                                                                                                                       hH              i      What does the LLM say? 5_   @   B           A                                                                                                                                                                                                                                                                                                                                                                       hH           	   j       - "Wa-pa-pa-pa-pa-pa-pow!"5_   A   C           B   
   (                                                                                                                                                                                                                                                                                                                                                                 hH        	      k      ( - "Joff-tchoff-tchoffo-tchoffo-tchoff!"5_   B   D           C   
                                                                                                                                                                                                                                                                                                                                                                    hH              l       - "A-hee-ahee ha-hee!"5_   C   E           D                                                                                                                                                                                                                                                                                                                                                                       hH              m       - "Fraka-kaka-kaka-kaka-kow!"5_   D   F           E                                                                                                                                                                                                                                                                                                                                                                        hH              n       5_   E   G           F                                                                                                                                                                                                                                                                                                                                                                        hH             o       5_   F   H           G      
                                                                                                                                                                                                                                                                                                                                                                 hH              o      
# Features5_   G   I           H      6                                                                                                                                                                                                                                                                                                                                                                 hH              q      [WDTLMS stands for What does the LLM say. It's a parody on the song 'What does the fox say'.5_   H   J           I      ]                                                                                                                                                                                                                                                                                                                                                                 hH           	   q      ]WDTLMS stands for What does the LLM say. It's a inspired on the song 'What does the fox say'.5_   I   K           J                                                                                                                                                                                                                                                                                                                                                                       hH;           	   u       - get_choices5_   J   L           K                                                                                                                                                                                                                                                                                                                                                                       hH<           	   v       5_   K   M           L                                                                                                                                                                                                                                                                                                                                                                       hH@           
   w       5_   L   N           M   
                                                                                                                                                                                                                                                                                                                                                                     hHX           
   y                    y       5_   M   O           N                                                                                                                                                                                                                                                                                                                                                                        hH]               x          # WDTLMS         x      # WDTLMS5_   N   P           O                                                                                                                                                                                                                                                                                                                                                                        hH`              w       5_   O   Q           P                                                                                                                                                                                                                                                                                                                                                                        hHb              x      WDTLMS stands for What does the LLM say. It's a inspired on the song 'What does the fox say' since Foxes say crazy stuff just like LLM's do.              y                    y       5_   P   R           Q                                                                                                                                                                                                                                                                                                                                                                        hHn              w       5_   Q   S           R                                                                                                                                                                                                                                                                                                                                                                        hHq              y                    y       5_   R   T           S                                                                                                                                                                                                                                                                                                                                                                        hHu              x                    x       5_   S   U           T                                                                                                                                                                                                                                                                                                                                                                        hHw        
      w       5_   T   V           U                                                                                                                                                                                                                                                                                                                                                             v        hH|              y   	   It provide four functions:    - get_bool   
 - get_number    - get_numbers   
 - get_choice    - get_choices            5_   U   W           V                                                                                                                                                                                                                                                                                                                                                             v        hH}              q                    q       5_   V   X           W                                                                                                                                                                                                                                                                                                                                                             v        hH              p       5_   W   Y           X                                                                                                                                                                                                                                                                                                                                                             v        hH              r       5_   X   Z           Y                                                                                                                                                                                                                                                                                                                                                             v        hH              s       5_   Y   [           Z                                                                                                                                                                                                                                                                                                                                                             v        hH              |      It provide four functions:5_   Z   \           [      
                                                                                                                                                                                                                                                                                                                                                      v        hH              }      It provide four functions:5_   [   ]           \                                                                                                                                                                                                                                                                                                                                                             v        hH               }                    }       5_   \   ^           ]                                                                                                                                                                                                                                                                                                                                                             v        hH                     5_   ]   _           ^                                                                                                                                                                                                                                                                                                                                                             v        hH                     5_   ^               _                                                                                                                                                                                                                                                                                                                                                            v        hH	                   ,predefined common words in common languages.5_                                                                                                                                                                                                                                                                                                                                                                                         hH                     Ddef get_choice(response: str, choice_iterable, threshold: int = 80):5